//
//  JapaneseCalendarAppDelegate.m
//  JapaneseCalendar
//
//  Created by Kishikawa Katsumi on 10/05/04.
//  Copyright Kishikawa Katsumi 2010. All rights reserved.
//

#import "JapaneseCalendarAppDelegate.h"

@implementation JapaneseCalendarAppDelegate

@synthesize window;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    NSDate *now = [NSDate date];
    
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    
    [dateFormatter setLocale:[[[NSLocale alloc] initWithLocaleIdentifier:@"ja_JP"] autorelease]];
    [dateFormatter setCalendar:[[[NSCalendar alloc] initWithCalendarIdentifier:NSJapaneseCalendar] autorelease]];
    
    [dateFormatter setDateFormat:[NSString stringWithUTF8String:"G yy 年 MMMM d日 EEE曜日 a h時 m分"]];
    NSLog(@"%@", [dateFormatter stringFromDate:now]);
	
	return YES;
}

- (void)dealloc {
    [window release];
    [super dealloc];
}

@end
